package com.gantang.gax.constant;

public class CommonConstant {
    /******************** 使用规则支持的分割符，目前包括与或非括号等 **************************/
    public static final String USAGE_RULE_SPLIT = "[!|&()]";

    public static final String EXPRESSION_RULE_SPLIT = "[<=>!&()|]";

    // 特征值比编码不允许维护的特殊字符
    public static final String FEATURE_CODE_NOT_ALLOWED_CHAR = "<=>!|&()";

    /**
     * inclusion -标配-条件为真时，结果一定为真
     */
    public static final String CONSTRAINT_TYPE_INCLUSION = "inclusion";
    /**
     * default-默认选装-条件为真时，结果可选
     */
    public static final String CONSTRAINT_TYPE_DEFAULT = "default";
    /**
     * available-可选-条件为真时，结果可选
     */
    public static final String CONSTRAINT_TYPE_AVAILABLE = "available";
    /**
     * exclusion-不配-条件为真时，结果一定为假
     */
    public static final String CONSTRAINT_TYPE_EXCLUSION = "exclusion";

    /**
     * 配置约束
     */
    public static final String RULE_TYPE_CONFIG = "1";
    /**
     * 整车约束
     */
    public static final String RULE_TYPE_VEHICLE = "0";

    /**
     * 结果状态成功
     */
    public static final String RESULT_SUCCESS_TRUE = "true";
    /**
     * 结果状态失败
     */
    public static final String RESULT_SUCCESS_FALSE = "false";

    /**
     * 编译结果状态成功
     */
    public static final String COMPILE_RESULT_TYPE_SUCCESS = "sucess";
    /**
     * 编译结果状态失败
     */
    public static final String COMPILE_RESULT_TYPE_FAIL = "fail";
    /**
     * 编译结果状态运行中
     */
    public static final String COMPILE_RESULT_TYPE_COMPILING = "compiling";

    /**
     * 引擎存储模式-内存
     */
    public static final String ENGINE_STORAGE_MODE_MOMORY = "memory";
    /**
     * 引擎存储模式-文件
     */
    public static final String ENGINE_STORAGE_MODE_FILE = "file";

    /**
     * 迷你引擎
     */
    public static final String MINI_SIMPLE_SAT_KEY = "mini_simple_sat";
}
